@mixin icondianFize {
  font-size: 0.8rem;
}

.iconfont {
  cursor: pointer;
}

// 左侧设备---导航列表
.equipList_main {
  position: relative;
  height: calc(100% - 170px);
  padding: 8px;
  overflow-y: auto;
  overflow-x: hidden; // 无查找结果

  .promptResults {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #999fa8;
    font-size: 0.875rem;
  }

  .el-radio-group {
    width: 100%;

    .el-radio {
      width: 100%;
    }
  }

  & > .sidebar-menu {
    user-select: none;

    .active {
      & > .link_box {
        .arrowHide {
          display: none !important;
        }

        .arrowShow {
          display: block !important;
        }
      }

      & > ul {
        display: block !important;

        & > ul {
          display: block !important;
        }
      }
    }

    & > .treeNav {
      margin-bottom: 8px;
      font-size: 0.875rem;

      ul {
        width: 100%;
        display: none;
      }

      a {
        color: #fff;
        text-decoration: none;
      }

      .equipNoName {
        margin-left: 10px;
      }

      .textIndent {
        text-indent: 10px;
      }

      .selectedColor {
        // background-color: #4cacf4;
        background-color: #3b4357;

        a {
          color: white !important;
        }
      }

      .link_box {
        width: 100%;
        height: 40px;
        line-height: 40px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        color: white;
        border-radius: 3px;
        background-color: #252833;
        border: 0.5px solid rgba(240, 244, 255, 0.16);

        > span {
          width: 20px;
          height: 32px !important;
          float: right;
          text-align: center;
          z-index: 99999;

          .el-button {
            padding: 0;
            right: 0;
            width: 20px !important;
            height: 40px;
            border: none;
            background: none;
          }
        }

        .option {
          width: 20px;
          float: right;
          text-align: center;
          z-index: 99999;
        }
      }

      .parent_tag {
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        height: 40px; // line-height: 40px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        color: white;

        .arrow {
          pointer-events: none;
          position: relative;
          top: 1px;
          padding-left: 3px;
          float: left;
          width: 25px;
          height: 100%;

          i {
            display: block;
            position: absolute;
            font-size: 14px;
            color: #999fa8;
          }

          .arrowHide {
            display: block;
          }

          .arrowShow {
            display: none;
          }
        }

        // &>label{margin: 0 0 0 10px;}
        .icondian {
          // float: left;
          margin: 0 3px 0 5px;
          width: 15px;
          @include icondianFize;
          color: #8c8c8c;
          pointer-events: none;
        }

        a {
          pointer-events: none;
          @include list-height;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          width: 66%;
        }

        .operation {
          position: absolute;
          right: 10px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          height: 100%;
          // width: 50px;
          cursor: pointer;

          span {
            display: flex;
            justify-content: center;
            align-items: center;
          }

          .iconfont {
            font-size: 20px;
          }

          .el-icon-more,
          .icon16_tianjia {
            width: 20px;
            height: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            transform: rotate(90deg);
          }

          .icon16_tianjia::before {
            width: 20px;
            height: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
          }
        }
      }

      .parentLevelTwoMenu {
        position: relative;
        margin: 0 0 0 2.3rem;
        width: calc(100% - 2.3rem); // height: 40px;
        line-height: 40px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        color: white;

        @media screen and (max-width: 1595px) {
          margin: 0 0 0 2.5rem;
          width: calc(100% - 2.5rem);
        }

        @media screen and (max-width: 1365px) {
          margin: 0 0 0 3.3rem;
          width: calc(100% - 3.3rem);
        }

        li {
          margin-top: 4px;
        }

        .arrow {
          position: relative;
          padding-left: 3px;
          float: left;
          width: 25px;
          height: 100%;

          i {
            display: block;
            position: absolute;
            font-size: 14px;
            color: #999fa8;
          }

          .arrowHide {
            display: block;
          }

          .arrowShow {
            display: none;
          }
        }

        & > label {
          margin-left: 10px;
        }

        .icondian {
          // float: left;
          margin: 0 3px 0 5px;
          width: 15px;
          @include icondianFize;
          color: #8c8c8c;
        }

        a {
          height: 100%;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }

      .child_tags:hover {
        transition: 0.3s;
        background-color: #485065;
      }

      .child_tags {
        position: relative;
        margin: 4px 0 0 2.3rem;
        width: auto;
        height: 40px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        line-height: 30px;
        white-space: nowrap;
        text-overflow: ellipsis; // overflow: hidden;
        color: white;
        border-radius: 3px;
        cursor: pointer;
        border: 0.5px solid rgba(240, 244, 255, 0.16);

        @media screen and (max-width: 1595px) {
          margin: 4px 0 0 2.5rem;
        }

        @media screen and (max-width: 1365px) {
          margin: 4px 0 0 3.3rem;
        }

        &:after {
          position: absolute;
          content: '';
          left: -20px;
          top: 50%;
          transform: translateY(-50%);
          display: block;
          width: 1rem;
          height: 1px;
          border: 1px dashed #8c8c8c;
        }

        &:before {
          position: absolute;
          content: '';
          left: -22px;
          top: -4px;
          display: block;
          height: 28px;
          border: 1px dashed #8c8c8c;
        }

        & > label {
          margin-left: 10px;
        }

        .icondian {
          // float: left;
          margin: 0 3px 0 5px;
          width: 15px;
          @include icondianFize;
          color: #8c8c8c;
          pointer-events: none;
        }

        a {
          @include list-height;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          width: 72%;
        }
      }

      .active_child {
        background-color: #3875ff;
        border-color: #3875ff;

        a,
        .el-icon-more {
          color: #262626;
        }
      }

      .father_active {
        color: #fff !important;
        border-radius: 3px;
        background-color: rgba(31, 35, 47, 1);

        a {
          color: #fff !important;
        }
      }

      .active_father {
        background-color: #2d2e30;

        .option,
        .arrow i,
        .el-button,
        a {
          color: white;
        }
      }
    }
  }

  /deep/ .el-radio__input {
    display: none;
  }

  /deep/ .el-radio__label {
    padding: 0;
  }

  .equipListItem {
    font-size: 0.875rem;
    height: 68px;
    margin-bottom: 4px;
    padding: 0 12px;
    background: #f8f8f8;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .equipItemInfo {
      display: inline-block;

      .equipName {
        font-family: '思源黑体' Regular;
        margin-bottom: 10px;

        span {
          margin-left: 16px;
        }
      }

      .equipNum {
        p {
          width: 40px;
          font-size: 0.75rem;
          text-align: center;
          line-height: 16px;
          background: #cccccc;
          color: #fff;
          margin-right: 3px;
          border-radius: 3px;
          display: inline-block;
        }
      }
    }

    .el-icon-more {
      color: #979797;
      transform: rotate(90deg);
      cursor: pointer;
    }
  }

  .is-checked {
    .equipListItem {
      background: #1f232f;
      color: #fff;
      opacity: 0.9;

      .equipNum {
        p {
          background: #4f535f !important;
        }
      }
    }
  }

  // 折叠
  /deep/ .el-collapse {
    .el-collapse-item__header {
      padding-left: 30px;
      position: relative;
      color: red !important;

      .el-icon-arrow-right {
        position: absolute;
        left: 10px;
      }
    }
  }
}

.equipPaging {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  border-top: 0.5px solid rgba(240, 244, 255, 0.16);
  background-color: #ffffff;
}

.ivu-checkbox-inner {
  display: inline-block;
  width: 14px;
  height: 14px;
  position: relative;
  top: 0;
  left: 0;
  border: 1px solid #dcdee2;
  border-radius: 2px;
  background-color: transparent !important;
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
  vertical-align: middle;
}

.ivu-checkbox-inner:after {
  border: 2px solid #fff;
}

.checkInput-active:after {
  content: '';
  display: table;
  width: 4px;
  height: 8px;
  position: absolute;
  left: 4px;
  border-top: 0 !important;
  border-left: 0 !important;
  box-sizing: border-box;
  -webkit-transform: rotate(45deg) scale(1);
  -ms-transform: rotate(45deg) scale(1);
  transform: rotate(45deg) scale(1);
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.elBtn {
  color: white !important;
  margin: 1px;
}

.newEquip {
  width: 100px;
}

.elBtnCenter {
  border-radius: 0;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
}

.noshow {
  display: none;
}
